package org.bonorsoft.modules.control.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.bonorsoft.modules.control.entity.Label;
import org.bonorsoft.modules.control.entity.Staff;
import org.bonorsoft.modules.control.mapper.StaffMapper;
import org.bonorsoft.modules.control.service.IStaffService;
import org.bonorsoft.modules.control.vo.StaffVo;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 实有人口从业状况(从业人员信息）
 * @Author: WilliamYe
 * @Date:   2021-03-05
 * @Version: V1.0
 */
@Service
public class StaffServiceImpl extends ServiceImpl<StaffMapper, Staff> implements IStaffService {

    @Override
    public IPage<StaffVo> paging(Page<Staff> page, QueryWrapper<Staff> queryWrapper) {
        return this.baseMapper.paging(page, queryWrapper);
    }

    @Override
    public List<StaffVo> listing(QueryWrapper<Staff> queryWrapper) {
        return this.baseMapper.listing(queryWrapper);
    }

    @Override
    public List<Label> getlabel(String id) {
        return this.baseMapper.getLabel(id);
    }
}
